<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/3/3
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<%@ include file="../frame/head.jsp" %>
<script src="${basePath}/resources/investigation/js/exampaper/fileList.js"></script>
<html>
<style>
    .holder {
        margin: 15px 0;
        float: right;
    }

    .holder a {
        font-size: 14px;
        cursor: pointer;
        color: #428bca;
        position: relative;
        padding: 8px 12px;
        text-decoration: none;
        background-color: #fff;
        border: 1px solid #ddd;
        border-right: none;
    }

    .holder a:hover {
        color: #2a6496;
        background-color: #eee;
    }

    .holder a.jp-next {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        border-right: 1px solid #ddd;
    }

    .holder a.jp-current, a.jp-current:hover {
        color: #FF4242;
        font-weight: bold;
    }

    .holder a.jp-disabled, a.jp-disabled:hover {
        color: #bbb;

    }

    .holder a.jp-current, a.jp-current:hover,
    .holder a.jp-disabled, a.jp-disabled:hover {
        cursor: default;
        background: none;
    }

    .holder span {
        margin: 0 5px;
    }
</style>
<head>
    <title>下载列表</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">下载列表</h3>
                </header>
                <hr>
                <div>
                    <table class="table">
                        <thead id="filelist">
                        <c:forEach var="file" items="${fileNameMap}">
                            <c:url value="${basePath}/exampaperController/downloadFile" var="downurl">
                                <c:param name="filename" value="${file.paperName}"></c:param>
                            </c:url>
                            <tr>
                                <td class="success" style="padding: 15px;">
                                    <p style="font-size: 18px;">${file.paperName}</p>
                                </td>
                                <td class="success">
                                    <a href="${downurl}">
                                        <p style="font-size: 18px; color: red">下载</p>
                                    </a>
                                </td>
                            </tr>
                        </c:forEach>
                        </thead>
                        <tr>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                    <button type="button" onclick="history.go(-1)" class="btn btn-success" style="width: 120px;">返回
                    </button>
                </div>
            </div>
            <div id="page" class="holder"></div>
        </section>
    </section>
</section>
</body>
</html>
